package com.qf.shopping.dto.memberDTO;

import com.qf.shopping.pojo.member.MemberPoint;
import com.qf.shopping.pojo.member.MemberProfile;

import java.util.Date;

public class MemberPointDTO {

    private long memberId;//会员id
    private long point;//积分分值
    private long type;//积分类型
    private long  createTime;//积分时间

    public MemberPointDTO() {
    }

    public MemberPointDTO(MemberPoint m) {
        this.memberId=m.getMemberId();
        this.point=m.getPoint();
        this.type=m.getType();
        this.createTime=m.getCreateTime();
    }

    public long getMemberId() {
        return memberId;
    }

    public void setMemberId(long memberId) {
        this.memberId = memberId;
    }

    public long getPoint() {
        return point;
    }

    public void setPoint(long point) {
        this.point = point;
    }

    public long getType() {
        return type;
    }

    public void setType(long type) {
        this.type = type;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "MemberPointDTO{" +
                "memberId=" + memberId +
                ", point=" + point +
                ", type=" + type +
                ", createTime=" + createTime +
                '}';
    }
}
